import axios from "axios";
import {Result} from "@/types/global.ts";
export const queryList = (params:any)=>{
    return axios.get<Result>('/sys/dict/list',{params})
}
export const add = (data:any)=>{
    return axios.post<Result>('/sys/dict/add',data)
}
export const edit = (data:any)=>{
    return axios.post<Result>('/sys/dict/update',data)
}
export const del = (id:string|number)=>{
    return axios.delete('/sys/dict/delete',{params:{id}})
}